<?php
$this->breadcrumbs = $this->pageTitle = '安全设置';
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'security-form',
    'enableClientValidation' => true,
    'clientOptions' => array(
        'validateOnSubmit' => true,
    ),
        ));
?>
<div class="home_area tm10">
    <div class="home_area_inbox cl">
        <div class="infolist cols2 cl">
            <div class="col cl">
                <div class="tit">安全邮箱：</div>
                <div class="inp"><?php echo Yii::app()->user->info['email']; ?></div>
            </div>
            <div class="col cl al_r">
<!--                <a href="#" class="c_b">修改邮箱</a>-->
            </div>
        </div>
        <div class="infolist cols2 cl">
            <div class="col cl">
                <div class="tit">绑定手机：</div>
                <div class="inp"><?php echo Yii::app()->user->info['phone']; ?></div>
            </div>
            <div class="col cl al_r">
<!--                <a href="#" class="c_b">更换手机</a><span class="pipe c_b">|</span><a href="#" class="c_b">解绑手机</a>-->
            </div>
        </div>
<!--        <div class="infolist cols1 cl clbd_b">
            <div class="col cl">
                <div class="tit">上次登录：</div>
                <div class="inp">
                    青年路xxxxxx
                </div>
            </div>
        </div>-->
    </div>
</div>
<div class="home_area tm10">
    <div class="cl zhbform clbd_b">
        <div class="area_header" align="center">修改密码</div>
        <div class="infolist cols1 cl tm20">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'oldpassword'); ?>：</div>
                <div class="inp cl"><div class="text"><?php echo $form->passwordField($model, 'oldpassword', array('style' => 'width:230px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'oldpassword'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'newpassword'); ?>：</div>
                <div class="inp cl"><div class="text"><?php echo $form->passwordField($model, 'newpassword', array('style' => 'width:230px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'newpassword'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'newpassword_repeat'); ?>：</div>
                <div class="inp"><div class="text"><?php echo $form->passwordField($model, 'newpassword_repeat', array('style' => 'width:230px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'newpassword_repeat'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo CHtml::submitButton('确认更改', array('class' => 'submit submit_green z')); ?></div>
            </div>
        </div>
    </div>
</div>
<?php $this->endWidget(); ?>